package com.wang.conf;

import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class AppData {

    public static String provinceCode = "0078"; //省
    public static String cityCode = "0079"; //市
    public static String districtCode = "0080"; //区

    //参数状态
    public static String shiyiStatusCode = "0172";
    public static String piangaoStatusCode = "0173";
    public static String piandiStatusCode = "0174";
    public static String guzhangStatusCode = "0175";

    //检测状态
    public static String checkNormalStatusCode = "0183";
    public static String checkNotNormalStatusCode = "0182";


    //运行状态
    public static String devRunGoodCode = "0179"; //运行良好
    public static String devRunExceptionCode = "0180"; //运行异常

    //水质状态
    public static String shuizhiGoodCode = "0176"; //水质优秀
    public static String shuizhiPassCode = "0177"; //水质良好
    public static String shuzhiExceptionGoodCode = "0178"; //水质异常
    public static String notDataCode = "0181";          //暂无数据


    //设备状态
    public static String onLineCode = "0184";//在线
    public static String offLineCode = "0185";//在线
    public static String guzhangCode = "0186";//故障


    public static String funConfCode = "001";   //设备功能
    public static String devTypeCode = "002";   //设备类型
    public static String baseMsgCode = "003";   //设备信息
    public static String setMsgCode = "004";   //设备设置
    public static String dataTypeCode = "008"; //数据类型
    public static String devTypeTxType = "005";//通讯方式
    public static String devTypeDataType = "006";//数据格式
    public static String checkParam = "007";   //检测参数
    public static String productFile = "010";  //产品资料
    public static String roleTypeCode = "012"; //角色类型
    public static String authTypeCode = "013"; //权限类别


    //日志
    //1、用户\管理员日志
    public static String userLogCode = "0056";
    public static String platFormUserLogCode = "0057";

    //2、设备运行日志 \ 设备操作日志 \设备报警日志
    //日志类型

    public static final String devRunLogCode = "0058"; //设备运行日志
    public static final String devOperateLogCode = "0059"; //设备操作日志
    public static final String devExceptionLogCode = "0060";    //设备报警日志

    //事件类型
    public static final String devOnlineLogCode = "0128";    //设备上线事件
    public static final String devOffLineCode = "0129";    //设备离线事件


    //数据传输协议
    public static String MqttTxCode = "0017";  //mqtt
    public static String SocketTxCode = "0018";   //socket
    //数据格式协议
    public static String JSONDataCode = "0019";
    public static String ModbusDataCode = "0020";
    public static String CustomOneCode = "0226"; //自定义数据格式1
    public static String CustomTWOCode = "0301"; //自定义数据格式2


    //存放全局变量中 http转socket 数据  第一个String devGid, 第二个Integer命令id
    //（json 放指令、 modbus放 confid）  第三个Object 数据 //暂行放返回数据对比
    public static Map<String, Map<String, Object>> returnMap = new  ConcurrentHashMap<>();


}
